import request from '@/utils/request'
import {
  handlerGetUrlParams
} from '@/utils/dealUrlParams.js'

export function addServiceStation(data) {
  return request({
    url: `/bus/Servernet`,
    method: 'POST',
    data
  })
}

export function getServiceStationList(param) {
  const url = handlerGetUrlParams('/bus/Servernet/list', param)
  return request({
    url,
    method: 'GET',
  })
}

export function getServiceStationDetail(id) {
  return request({
    url: `/bus/Servernet/${id}`,
    method: 'GET',
  })
}

export function editServiceStation(data) {
  return request({
    url: `/bus/Servernet`,
    method: 'PUT',
    data
  })
}

export function getServiceStation() {
  return request({
    url:'/bus/Servernet/getlist',
    method: 'GET',
  })
}